package com.hancher.gamelife2.saolei;

import android.os.Bundle;

import com.hancher.common.base.BaseFragment;
import com.hancher.gamelife2.databinding.FragmentSaoleiBinding;

/**
 * 作者 : Hancher ytu_shaoweijie@163.com <br/>
 * 时间 : 2023/4/22 12:37 <br/>
 * 描述 : 扫雷
 */
public class SaoLeiFragment extends BaseFragment<FragmentSaoleiBinding> {

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected void initListener() {
        binding.tvRestart.setOnClickListener(v -> {
            binding.view.initData(binding.view.getContext());
            binding.view.invalidate();
        });
        binding.tvRestart.setOnClickListener(v -> {
            binding.view.initRank(100, 9, 9, 10);
            binding.view.initData(binding.view.getContext());
            binding.view.invalidate();
        });
        binding.tvRestart.setOnClickListener(v -> {
            binding.view.initRank(300, 16, 16, 40);
            binding.view.initData(binding.view.getContext());
            binding.view.invalidate();
        });
        binding.tvRestart.setOnClickListener(v -> {
            binding.view.initRank(500, 16, 30, 99);
            binding.view.initData(binding.view.getContext());
            binding.view.invalidate();
        });
    }

    @Override
    protected void initData() {

    }
}